package com.bristua.mall.common.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.biz.QueryPromotionBiz;
import com.bristua.mall.common.biz.QuerySpecialPriceBiz;
import com.bristua.mall.common.utils.HandleResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/5/9.
 */
@RestController
@Api(value="促销查询",tags={"促销查询"})
public class QueryPromotionController {

    @Autowired
    private QueryPromotionBiz queryPromotionBiz;

    @PostMapping(value="/get/app/index/promotion")
    @ApiOperation(value="促销查询")
    public Result querySpecialPrice(){
        return HandleResultUtil.querySuccessResult(queryPromotionBiz.queryPromotion());
    }
}
